package com.daka.vo.response;

import com.daka.entity.BaseAddress;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * Created by yangx
 * CreateTime: 2016/9/28 8:38
 */

@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class BaseAddressListVo {
    private Long id;
    private String name;
    private String address;
    //审批状态
    private Integer verfierStatus;

    public static BaseAddressListVo buildVO(BaseAddress baseAddress ) {
        BaseAddressListVo addressListVo = new BaseAddressListVo();
        addressListVo.setId(baseAddress.getId());
        addressListVo.setName(baseAddress.getName());
        addressListVo.setAddress(baseAddress.getAddress());
        addressListVo.setVerfierStatus(baseAddress.getVerfierStatus());
        return addressListVo;
    }
}
